#ifndef __WORKTHREAD_H__
#define __WORKTHREAD_H__

#include "Thread.h"
#include "ThreadPool.h"


class WorkThread
: public Thread
{
public:
    WorkThread(ThreadPool &pool)
    : _pool(pool)
    {

    }

    ~WorkThread()
    {

    }

    void run() override
    {
        //工作线程做的任务
        _pool.threadFunc();
    }


private:
    ThreadPool &_pool;

};

#endif
